 import Vue from 'vue'
 import Router from 'vue-router'

 // 主容器
 import Layout from '@/components/layout'

 // 底部页面路由
 import Home from "@/pages/home"
 import Mine from "@/pages/mine"
 import Service from "@/pages/service"
 import Shopping from "@/pages/shopping"

 // 引导页轮播图页面
 import Boot from "@/components/boot"

 // 商城
 import ShopCar from "@/pages/shopping/shopcar"
 import SecondMall from "@/pages/shopping/secondmall"
 import NewProduct from "@/pages/shopping/newproduct"
 import CheckOrder from "@/pages/shopping/detailpages/checkorder"
 import ShopOrder from "@/pages/shopping/detailpages/shoporder"
 import RecomDetail from "@/pages/shopping/detailpages/recomdetail"
 import Category from "@/pages/shopping/detailpages/category"
 import Cupboard from "@/pages/shopping/detailpages/cupboard"

 // 首页
 import Localize from "@/pages/homepages/localize"
 import WoNews from "@/pages/homepages/wonews"
 import SearchPage from "@/pages/homepages/searchpage"
 import CommunityPage from "@/pages/homepages/communitypage"
 import RoommatePage from "@/pages/homepages/roommatepage"
 import HomeCurrent from "@/pages/homepages/homecurrent"
 import HouseDetail from "@/pages/homepages/housedetail"
 import NearCompany from "@/pages/homepages/nearcompany"

 //生活服务
 import Add from "@/pages/servicepages/add"
 import Life from "@/pages/servicepages/life"
 import Selectjg from "@/pages/servicepages/selectjg"
 import Cleaning from "@/pages/servicepages/Cleaning"
 import Homerepair from "@/pages/servicepages/homerepair"
 import Movehouse from "@/pages/servicepages/movehouse"
 import Dailyclean from "@/pages/servicepages/Dailyclean"
 import Removemites from "@/pages/servicepages/Removemites"
 import Yijumove from "@/pages/servicepages/Yijumove"
 import Recharge from "@/pages/servicepages/Recharge"

//我的
import PersonCenter from "@/pages/mine/personcenter"
import Login from "@/pages/mine/login"
import Register from "@/pages/mine/register"
import Coupon from "@/pages/mine/coupon"
import Collect from "@/pages/mine/collect"
import AboutSee from "@/pages/mine/aboutsee"
import MyOrder from "@/pages/mine/myorder"
import PersonalAssistant from "@/pages/mine/personalassistant"
import MyEvaluation from "@/pages/mine/myevaluation"
import SmalltalkPage from "@/pages/mine/smalltalk_page"
import ComplaintsSuggestions from "@/pages/mine/complaints_suggestions"
import NearAgent from "@/pages/mine/minedetails/nearagent"
import MovieMent from "@/pages/mine/minedetails/movie_ment"
import Broker from "@/pages/mine/minedetails/broker"
import Contract from "@/pages/mine/contract"
import Sublet from "@/pages/mine/sublet"
import Relet from "@/pages/mine/relet"
import Checkout from "@/pages/mine/checkout"
import Credit from "@/pages/mine/credit"
import Bill from "@/pages/mine/bill"
import ChangeName from "@/pages/mine/minedetails/changename"

 Vue.use(Router)
export default new Router({
	linkActiveClass: "active",
	routes: [{
		path: "/",
		name: 'boot',
		component: Boot
	}, {
		path: '/layout',
		name: 'Layout',
		component: Layout,
		redirect: '/layout/home',
		children: [{
			path: "home",
			name: 'home',
			component: Home,
		}, {
			path: "shopping",
			name: 'shopping',
			component: Shopping
		}, {
			path: "service",
			name: 'service',
			component: Service,
		}, {
			path: "mine",
			name: 'mine',
			component: Mine
		}]
	}, {
		path: '/localize',
		name: 'Localize',
		component: Localize
	}, {
		path: '/wonews',
		name: 'WoNews',
		component: WoNews
	}, {
		path: '/homecurrent',
		name: 'HomeCurrent',
		component: HomeCurrent
	}, {
		path: "/housedetail",
		name: 'HouseDetail',
		component: HouseDetail
	}, {
		path: "/nearcompany",
		name: 'NearCompany',
		component: NearCompany
	}, {
		path: '/searchpage',
		name: 'SearchPage',
		component: SearchPage
	}, {
		path: '/communitypage',
		name: 'CommunityPage',
		component: CommunityPage
	}, {
		path: '/roommatepage',
		name: 'RoommatePage',
		component: RoommatePage
	}, {
		path: '/shopping/shopcar',
		name: 'shopcar',
		component: ShopCar
	}, {
		path: '/shopping/secondmall',
		name: 'secondmall',
		component: SecondMall
	}, {
		path: '/shopping/newproduct',
		name: 'newproduct',
		component: NewProduct
	}, {
		path: '/shopping/newproduct/category',
		name: 'category',
		component: Category
	}, {
		path: '/shopping/newproduct/cupboard',
		name: 'cupboard',
		component: Cupboard
	}, {
		path: '/shopping/shopcar/checkorder',
		name: 'checkorder',
		component: CheckOrder
	}, {
		path: '/shopping/shopcar/shoporder',
		name: 'shoporder',
		component: ShopOrder
	}, {
		path: '/shopping/secondmall/recomdetail',
		name: 'recomdetail',
		component: RecomDetail
	}, {
		path: '/mine/personcenter',
		name: 'personcenter',
		component: PersonCenter
	}, {
		path: '/mine/login',
		name: 'login',
		component: Login
	},  {
		path: '/mine/register',
		name: 'Register',
		component: Register
	},{
		path: '/coupon',
		name: 'Coupon',
		component: Coupon
	}, {
		path: '/collect',
		name: 'Collect',
		component: Collect
	}, {
		path: '/aboutsee',
		name: 'AboutSee',
		component: AboutSee
	}, {
		path: '/myorder',
		name: 'MyOrder',
		component: MyOrder
	}, {
		path: '/personalassistant',
		name: 'PersonalAssistant',
		component: PersonalAssistant
	}, {
		path: '/smalltalk_page',
		name: 'SmalltalkPage',
		component: SmalltalkPage
	}, {
		path: '/myevaluation',
		name: 'MyEvaluation',
		component: MyEvaluation
	}, {
		path: '/complaints_suggestions',
		name: 'ComplaintsSuggestions',
		component: ComplaintsSuggestions
	}, {
		path: '/nearagent',
		name: 'NearAgent',
		component: NearAgent
	}, {
		path: '/movie_ment',
		name: 'MovieMent',
		component: MovieMent
	}, {
		path: '/broker',
		name: 'Broker',
		component: Broker
	}, {
		path: '/mine/contract',
		name: 'contract',
		component: Contract
	}, {
		path: '/mine/sublet',
		name: 'sublet',
		component: Sublet
	}, {
		path: '/mine/checkout',
		name: 'checkout',
		component: Checkout
	},{
		path: '/mine/changename',
		name: 'ChangeName',
		component: ChangeName
	}, {
		path: '/mine/credit',
		name: 'credit',
		component: Credit
	}, {
		path: '/mine/relet',
		name: 'relet',
		component: Relet
	}, {
		path: '/mine/bill',
		name: 'bill',
		component: Bill
	}, {
		path: '/add',
		name: 'add',
		component: Add
	}, {
		path: '/life',
		name: 'life',
		component: Life
	}, {
		path: '/selectjg',
		name: 'selectjg',
		component: Selectjg
	},{
		path: '/cleaning',
		name: 'cleaning',
		component: Cleaning
	},{
		path: '/homerepair',
		name: 'homerepair',
		component: Homerepair
	},{
		path: '/movehouse',
		name: 'movehouse',
		component: Movehouse
	},{
		path: '/dailyclean',
		name: 'dailyclean',
		component: Dailyclean
	},{
		path: '/removemites',
		name: 'removemites',
		component: Removemites
	},{
		path: '/yijumove',
		name: 'yijumove',
		component: Yijumove
	},{
		path: '/recharge',
		name: 'recharge',
		component: Recharge
	}
	]
})
